package com.guomao.mapper;

import com.guomao.entity.Student;

import java.util.List;

public interface StudentMapper {

    public Student queryStudentById(Integer id);


    public Student queryStudentByList(List<Integer> ids);

    public List<Student> queryAllStudents();

    //    public int insertStudent(Student student);
    public boolean insertStudent(Student student);
//    public Integer insertStudent(Student student);


    public int updateStudent(Student student);

    public int deleteStudentById(Integer id);

    //    map{name=%root%,age=15}
//    map{arg0=%root%,arg1=15}
//    map{param1=%root%,param2=15}
//    public List<Student> queryStudentByNameAndAge(@Param("name") String name, @Param("age") Integer age);
//    public List<Student> queryStudentByNameAndAge(HashMap<String, Object> map);
    public List<Student> queryStudentByNameAndAge(Student s);
}
